package ModelLayer; 		//makes this class a part of the ModelLayer package

/**
 * Write a description of class SaleItem here.
 * @author (ucn-1semprojekt-dm78-gruppe1) 
 */
@SuppressWarnings("serial")
public class SaleItem extends Item
{
    private String barCode;
    private int minAmount;
    private int maxAmount;

    /**
     * Constructor for objects of class SaleItem
     */
    public SaleItem(int itemnr, String description, double price, int inStock, String location, String barCode, int minAmount, int maxAmount)
    {
        super(itemnr, description, price, inStock, location);
        this.barCode = barCode;
        this.minAmount = minAmount;
        this.maxAmount = maxAmount;
    }
    
    public void setBarCode(String barCode)
    {
        this.barCode = barCode;
    }
    
    public void setMinAmount(int minAmount)
    {
        this.minAmount = minAmount;
    }
    
    public void setMaxAmount(int maxAmount)
    {
        this.maxAmount = maxAmount;
    }
    
    public String getBarCode()
    {
        return barCode;
    }
    
    public int getMinAmount()
    {
        return minAmount;
    }
    
    public int getMaxAmount()
    {
        return maxAmount;
    }
}
